<?php

return [
    'default'    =>    'file',
    'stores'    =>    [
        'file'   =>  [
            'type'   => 'file',
            'path'   => runtime_path()  . '/cache/',
            'prefix' => 'think',
            'expire' => 0,
        ],
        'redis'   =>  [
            'type'   => 'redis',
            'host' => env('redis.host', '127.0.0.1'),
            'port' => env('redis.port', 6379),
            'password' => env('redis.password', ''),
            'select' => 0,
            'prefix' => env('app.key', '') . 'cache:',
            'expire'     => 0,
            'tag_prefix' => env('app.key', '') . 'tag:',
            'pool' => [
                'max_connections' => 5,
                'min_connections' => 1,
                'wait_timeout' => 3,
                'idle_timeout' => 60,
                'heartbeat_interval' => 50,
            ],
        ],
    ],
];
